package com.java2007.factory;

/**
 * Bean工厂
 * @author ZOU
 */
public class BeanFactory {

    public static Object getBean(String className){
        try {
            Class clazz = Class.forName(className);
            return  clazz.newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
